package com.lims.algorithm.algset.graph.expression;

/**
 * <功能简述>
 *
 * @author lims
 * @date 2021-05-02 16:32
 */
public class ExpressionBean extends BaseVertexData {

    /**
     * 业务bean的值
     */
    private String expressionValue;

    public ExpressionBean() {
        super();
    }

    public ExpressionBean(String expressionValue) {
        this.expressionValue = expressionValue;
    }

    // 建造者
    public static class Builder {
        private ExpressionBean exp;

        public Builder() {
            exp = new ExpressionBean();
        }

        public Builder setKey(String key) {
            exp.setKey(key);
            return this;
        }

        public Builder setExpressionValue(String expressionValue) {
            exp.setExpressionValue(expressionValue);
            return this;
        }

        public ExpressionBean build() {
            return exp;
        }
    }

    /**
     * @return expressionValue
     */
    public String getExpressionValue() {
        return expressionValue;
    }

    /**
     * @param expressionValue
     */
    public void setExpressionValue(String expressionValue) {
        this.expressionValue = expressionValue;
    }
}
